home *** CD-ROM | disk | FTP | other *** search
- Path: cdn_news.telecom.com.au!usenet
- From: Jeff PAton <jpaton@vitgexec.telecom.com.au>
- Newsgroups: comp.lang.c
- Subject: Re: Problem...Problem!
- Date: 31 Jan 1996 02:40:53 GMT
- Organization: Telstra
- Message-ID: <4emkrl$qs@cdn_news.telecom.com.au>
- References: <4el09q$6im@ratree.psu.ac.th>
- NNTP-Posting-Host: 144.136.190.172
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
- s3610165@maliwan.psu.ac.th (Sanon CHAOCHAIYAPORN) wrote:
- >Dear all
- > This is a iteration method program. It use to find three values,
- >a b and c. This program will finish when variables, t[], are less than or
- >equal an error value, ERR. But my program has not been runing. Please,
- >advice me...:~( Thanks for your attention.
- >
- [snip]
- |
- |display()
- |{
- | printf("%10.4f",v[i]);
- | printf("%10.4f",v[i+1]);
- | printf("%10.4f",v[i+2]);
- | printf("%10.4f",v[i+3]);
- | printf("%10.4f",v[i+4]);
- | printf("%10.4f",v[i+5]);
- | printf("%10.4f",v[i+6]);
- | printf("%10.4f",v[i+7]);
- |}
- |
-
- My previous reply assumed that you needed *all* t[i] to be <= ERR for the
- program to terminate.
-
- Also, your display() routine probably isn't working, or else it is by luck - you
- have not initialised i appropriately (and why isn't a for loop used here as well?)
-
-